<template>
  <div class="heads">
    <!-- <img class="FrameLeft" src="../assets/img/FrameLeft.png" alt="">
    <span>{{title}}</span>
    <img class="FrameRight" src="../assets/img/FrameRight.png" alt=""> -->
    <!-- <img src="../assets/img/title1.png" alt=""> -->
    <div class="imgs" :style="{backgroundImage:`url(${types == 0 ? title0 : (types == 1 ? title1 : (types == 2 ? title2 : (types == 3 ? title3 : (types == 4 ? title4 : (types == 5 ? title5 : (types == 6 ? title6 : title7))))))})`}"></div>
  </div>
</template>

<script>
import title0 from '../assets/img/title0.png'
import title1 from '../assets/img/title1.png'
import title2 from '../assets/img/title2.png'
import title3 from '../assets/img/title3.png'
import title4 from '../assets/img/title4.png'
import title5 from '../assets/img/title5.png'
import title6 from '../assets/img/title6.png'
import title7 from '../assets/img/title7.png'
export default {
    props:{
        title:{
            type:String,
            default:'少女虫'
        },
        types:{
            type:Number,
            default:1
        }
    },
    data(){
        return {
            title0,
            title1,
            title2,
            title3,
            title4,
            title5,
            title6,
            title7
        }
    },
}
</script>

<style lang="less" scoped>
.heads{
    width: 600px;
    // height: 114px;
    // background-image: url('../assets/img/titleOne.png');
    // background-size: 100% 114px;
    text-align: center;
    // line-height: 100px;
    font-size: 64px;
    color: #7875FC;
    margin: 0 auto;
    margin-top: 77px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    // .FrameLeft{
    //     width: 72px;
    //     height: 72px;
    //     margin-top: 10px;
    // }
    // .FrameRight{
    //     width: 56px;
    //     height: 56px;
    //     margin-left: 11px;
    // }
    .imgs{
        width: 516px;
        height: 230px;
        background-image: url('../assets/img/title1.png');
        background-size: 100% 314px;
    }
}
</style>